<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
<form id="addform" name="addform" class="form-horizontal" method="post"
	action="${pageContext.request.contextPath}/resident/addEntity.shtml" >
	<section class="panel panel-default">
		<div class="panel-body">
			<div class="form-group">
				<label class="col-sm-3 control-label">姓名</label>
				<div class="col-sm-9">
					<input type="text" class="form-control " placeholder="请输入姓名"
						name="residentFormMap.userName" id="userName">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">手机号码</label>
				<div class="col-sm-9">
					<input type="tel" class="form-control " placeholder="请输入手机号码"
						name="residentFormMap.phone" id="phone">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">登陆密码</label>
				<div class="col-sm-9">
					<input type="text" class="form-control " placeholder="请输入登陆密码"
						name="residentFormMap.password" id="password">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">地址</label>
				<div class="col-sm-9">
					<input type="text" class="form-control " placeholder="请输入地址"
						name="residentFormMap.userAddr" id="userAddr">
				</div>
			</div>
			<div class="form-group">
					<label class="col-sm-3 control-label">是否认证</label>
					<div class="col-sm-9">
					<label class="inline"><input  checked="checked" onclick="checkstate(this)" type="checkbox" class="ace ace-switch ace-switch-6"><span class="lbl middle"></span></label>
						<input type="hidden"
								name="residentFormMap.isAuth" id="isAuth" value="Y">
						</div>
			</div>
			<div class="form-group">
					<label class="col-sm-3 control-label">是否为户主</label>
					<div class="col-sm-9">
					<label class="inline"><input  checked="checked" onclick="checkMaster(this)" type="checkbox" class="ace ace-switch ace-switch-6"><span class="lbl middle"></span></label>
						<input type="hidden"
								name="residentFormMap.isMaster" id="isMaster" value="Y">
					</div>
			</div>
		</div>
		<%@include file="/common/buttom.jspf"%>
	</section>
</form>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/hxsq/resident/add.js"></script>
<script type="text/javascript">
function checkstate(obj){
	if(obj.checked){
		$("#isAuth").val("Y")
	}else{
		$("#isAuth").val("N")
	}
}
function checkMaster(obj){
	if(obj.checked){
		$("#isMaster").val("Y")
	}else{
		$("#isMaster").val("N")
	}
}
</script>